import request from '@/utils/request'

// 查询审核登录列表
export function listInfo(query) {
  return request({
    url: '/system/info/report/list',
    method: 'get',
    params: query
  })
}

// 查询审核登录列表
export function orgReportlist(query) {
  return request({
    url: '/system/info/report/orgReportlist',
    method: 'get',
    params: query
  })
}

// 查询审核登录详细
export function getInfo(id) {
  return request({
    url: '/system/info/report/' + id,
    method: 'get'
  })
}

// 新增审核登录
export function addInfo(data) {
  return request({
    url: '/app/submitAudit',
    method: 'post',
    data: data
  })
}

// 新增审核登录
export function listInfoLike(data) {
  return request({
    url: '/app/selectReportInfoListLike',
    method: 'post',
    data: data
  })
}

// 修改审核登录
export function updateInfo(data) {
  return request({
    url: '/system/info/report',
    method: 'put',
    data: data
  })
}

// 删除审核登录
export function delInfo(id) {
  return request({
    url: '/system/info/report/' + id,
    method: 'delete'
  })
}

// 查询审核登录详细
export function getyingqing(originPlace) {
  return request({
    url: '/app/getYiQing?originPlace=' + originPlace,
    method: 'get'
  })

}


// 修改审核登录
export function updateInfoStatus(data) {
  return request({
    url: '/app/updateInfoStatus',
    method: 'put',
    data: data
  })
}

// 修改审核状态
export function updateReportEdit(data) {
  return request({
    url: '/system/info/report',
    method: 'put',
    data: data
  })
}

